package cn.lijunkui.config;

import cn.lijunkui.listener.StartListener;
import cn.lijunkui.servlet.UserServlet;
import org.springframework.boot.web.servlet.ServletListenerRegistrationBean;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author yzq
 */
@Configuration
public class WebApplicationConfig {
    @Bean
    public ServletListenerRegistrationBean<StartListener> startServlet() {
        return new ServletListenerRegistrationBean<>(new StartListener());
    }
    //@Bean
    //public ServletRegistrationBean<UserServlet> userServlet() {
    //    return new ServletRegistrationBean<>(new UserServlet());
    //}
}
